<%-- 
    Document   : getQuanhuyen
    Created on : Dec 6, 2013, 3:28:44 AM
    Author     : Welcome
--%>

<%@page import="bc.entity.Quanhuyen"%>
<%@page import="businesscard.DAO.QuanhuyenDAO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
    int city = Integer.parseInt(request.getParameter("thanhpho"));
    QuanhuyenDAO quanDAO = new QuanhuyenDAO();
    Quanhuyen[] quan = quanDAO.selectQuanhuyen(city);


    out.print("<select name='txtQuanhuyen'>");
    for (int i = 0; i < quan.length; i++) {%>
    <option  value=<%=quan[i].getIdQuanhuyen()%>><%=quan[i].getQuanhuyen()%></option>);
<%
    }
    out.print(" </select>");
%>
